import AppUserBasicInfo from "./AppUserBasicInfo.js"
import AppUserProfile from "./AppUserProfile.js"
import AppUserProfilePublicity from "./AppUserProfilePublicity.js"
import AppUserWorkspace from "./AppUserWorkspace.js"

/**
 * 用户完整信息类
 */
export default class AppUserDetailApiResponse {
    /**
     * 用户基本信息
     * @type {AppUserBasicInfo}
     */
    user

    /**
     * 用户资料
     * @type {AppUserProfile}
     */
    profile

    /**
     * 资料公开设置
     * @type {AppUserProfilePublicity}
     */
    profile_publicity

    /**
     * 工作空间信息
     * @type {AppUserWorkspace}
     */
    workspace

    constructor(data) {
        this.user = new AppUserBasicInfo(data.user)
        this.profile = new AppUserProfile(data.profile)
        this.profile_publicity = new AppUserProfilePublicity(data.profile_publicity)
        this.workspace = new AppUserWorkspace(data.workspace)
    }
}
